<%@ page import="support.*, java.util.*, java.sql.*, javax.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<jsp:include page="header.jsp" />

<%
// Get Vector of majors
support s = new support(); 		
String path = config.getServletContext().getRealPath("majors.txt");
Vector majors = s.getMajors(path);
%>

	<div id="content" class="expand">
		<h2>Graduate Application</h2>
			
		<p>Select your discipline</p>
		
    	<html:errors />

		<html:form action="students/degreeInfo" enctype="multipart/form-data">
		<% 
			for (int i = 0; i < majors.size(); i++) {
		%>
			<html:radio name="DegreeForm" property="discipline" value="<%= (String)majors.get(i) %>" /> <%= majors.get(i) %> <br/>
		<%
			}
		%>
		
			<html:radio property="discipline" value="other"/>  Other: <html:text name="DegreeForm" property="discipline" />
			
			<p>Time of Graduation</p>
			Month: <html:text name="DegreeForm" property="month" size="2" maxlength="2" />
			Year: <html:text name="DegreeForm" property="year" size="4" maxlength="4" /> <br/>
			
			GPA or Expected GPA: <html:text name="DegreeForm" property="gpa" size="4" />
			
			<p>Title of Degree:
				<html:select name="DegreeForm" property="title" >
					<html:option value="BS">BS</html:option>
					<html:option value="MS">MS</html:option>
					<html:option value="PhD">PhD</html:option>		
				</html:select>
			</p>

			<p>Transcript Upload:  </p>

			<input type="submit" value="Submit">
		</html:form>
		
	</div>

</body>
</html>